package ltd.hanamaki;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

public class SeleniumTest {

    static WebDriver driver;

    @BeforeClass
    public void setUp() {
        /* 3.1.  */
        /* 注册 谷歌浏览器打开的位置 */
        System.setProperty("webdriver.chrome.driver", "C:\\Program Files\\Google\\Chrome\\Application\\chromedriver.exe");
        /* 3.2 注册 驱动 */
        driver = new ChromeDriver();
    }

    @Test
    public void t() {
        /* 打开 百度地址 */
        driver.get("https://www.baidu.com");

    }

}
